package com.electron.power.aio.common;

/**
 * Created by ace on 2017/8/29.
 */
public class CommonConstants {
    public final static String RESOURCE_TYPE_MENU = "menu";
    public final static String RESOURCE_TYPE_BTN = "button";
    
    public static final Integer COMMON_ERROR_CODE = 1;
    // 用户token异常
    public static final Integer EX_USER_INVALID_CODE = 40101;
    public static final Integer EX_USER_PASS_INVALID_CODE = 40001;
    // 客户端token异常
    public static final Integer EX_CLIENT_INVALID_CODE = 40301;
    public static final Integer EX_CLIENT_FORBIDDEN_CODE = 40331;
    public static final Integer EX_OTHER_CODE = 500;
    public static final String CONTEXT_KEY_USER_ID = "currentUserId";
    public static final String CONTEXT_KEY_USERNAME = "currentUserName";
    public static final String CONTEXT_KEY_USER_NAME = "currentUser";
    public static final String CONTEXT_KEY_USER_TOKEN = "currentUserToken";
    public static final String JWT_KEY_USER_ID = "userId";
    public static final String JWT_KEY_NAME = "name";
    public static final String  USERID_HEADER="userIdHeader"; 	//token的userId
    //游客访问 路径关键建词(不需要token)
    public static final String GUEST="guest";
    
    //普通用户(非系统用户)访问路径关键词
    public static final String ORDUSER="ordUser";
    
    
    //资讯前端授权用户标识(在token的userName中使用，区分系统用户)
    public static final String CONSULT_USER="consult#";
    
    //小程序前端授权用户标识
    public static final String SMALL_PROGRAM_USER="smallProgram#";
    
    
}
